package com.serookie.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/6/5 15:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="订单详情对象", description="订单详情")
@TableName(value = "order_details")
public class OrderDetails{
    @ApiModelProperty("主键id")
    @TableId(type= IdType.AUTO)
    private  Integer id;
    @ApiModelProperty("商品id")
    private Integer goodsId;
    @ApiModelProperty("订单号")
    private Integer orderId;
    @ApiModelProperty("num")
    private Integer num;
    @ApiModelProperty("商品id")
    private BigDecimal price;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("商品的创建时间")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("商品的修改时间")
    private Date updateTime;
    @ApiModelProperty("商品")
    @TableField(exist = false)
    private Goods goods;
}
